package com.burpee.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.burpee.dao.AuthorityDao;
import com.burpee.ui.Authority;

@Service(value="authorityService")
public class AuthorityServiceImpl implements AuthorityService {

	@Autowired
	AuthorityDao authorityDao;
//	public List<Authority> list() {
//		
//		return authorityDao.list();
//	}

	public Authority view(Authority authority) {
		// TODO Auto-generated method stub
		return authorityDao.view(authority);
	}

	public boolean add(Authority authority) {
		if(authorityDao.add(authority) > 0){
			return true;
		}
		else{

			return false;
		}
	}

	public boolean modify(Authority authority) {
		if(authorityDao.modify(authority) > 0){
			return true;
		}
		else{

			return false;
		}
	}

//	public boolean remove(Authority authority) {
//		if(authorityDao.remove(authority) > 0){
//			return true;
//		}
//		else{
//
//			return false;
//		}
//	}

}
